<div class="setting-box" ng-controller="settingController">

        <div class="query_table" style=" height:470px !important; overflow-y: auto; overflow-x: hidden">
            <table  style="margin-top: 10px" class="table table-bordered table-striped">
                <tr>
                    <td style="width: 75px">设备种类图</td>
                    <td>设备种类</td>
                    <td>设备参数</td>
                    <td>操作</td>
                </tr>
                <tr ng-repeat="set in setDate">
                    <td><img ng-src="{{serviceHttp + set.logo}}" style="width: 28px; height: 25px;"></td>
                    <td ng-bind="set.name"></td>
                    <td>
                        <i ng-repeat="param in set.inspectTypes" class="pr15">{{param.name}}</i>
                    </td>
                    <td style="width: 140px">
                        <a href="javascript:void(0)" class="Tab-update" data-toggle="modal"
                           data-target="#updateUnitType"
                           data-backdrop="static" ng-click="UpdateUnitTypeInit(set.id)"
                           style="padding-right: 16px;">修改</a>
                        <a href="javascript:void(0)" data-toggle="modal" data-target="#deleteUnitType"
                           data-backdrop="static" ng-click="deleteUnitTypeInit(set)" style="color: red;">删除</a>
                    </td>
                </tr>
            </table>
        </div>
        <div class="unit-addBox" style="cursor: pointer;">
            <a class="unit-btnSelect" style="font-size: 14px;"
               data-toggle="modal" data-target="#addUnitType" data-backdrop="static" ng-click="AddUnitTypeInit()">+新增</a>
        </div>

    <!--新增设备类型-->
    <div id="addUnitType" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="addUnitTypeLable"
         aria-hidden="true">
        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
            <h4 id="addUnitTypeLable">新增设备种类</h4>
        </div>
        <div class="modal-body">
            <div class="container" style="width:500px; height:650px; padding-bottom:20px;">
                <div class="add_tj">
                    <div>
                        <p>
                            <span>请选择设备种类图：</span><input id="addUnitTypeToUpload" name="file" type="file"/><br>
                            <i style="color: #959595;padding-left: 7px;">(* 推荐图片上传尺寸：28px * 25px，分辨率大小：96dpi)</i>
                        <div class="col-md-12">
                            <img id="addUnitTypePhotoNew" src=""
                                 style="max-width:200px;max-height:200px;margin:0 auto;display:block;"/>
                        </div>
                        </p>
                        <p>
                            <span>设备种类：</span>
                            <input type="text" style="width: 120px" ng-model="inspectUnitType.name" id="UnitTypeName">
                            <i style="color: #959595;padding-left: 7px;">(*必填)</i>
                        </p>

                    </div>

                </div>
                <div>
                    <p><span>设备参数：</span> <i style="color: #959595;padding-left: 7px;">(*至少选一项)</i></p>

                    <ul class="table-ul">
                        <!--{{inspectUnitType| json}}-->
                        <li ng-repeat="u in inspectUnitType.list">
                            <div class="L_blockStyle">
                                <input type="checkbox"
                                       style="width: auto" ng-model="u.chosed">
                                <span>{{u.name}}</span>
                            </div>
                            <div class="R_blockStyle" ng-show="u.id!=8">
                                <p>
                                    <span>标准参数：</span>
                                    <input type="text" ng-disabled="!u.chosed" style="width:90px;"
                                           ng-model="u.standard" placeholder="请输入标准值"/>
                                </p>
                                <p >
                                    <span>黄色警报参数：</span>
                                    <input type="text" ng-disabled="!u.chosed"
                                           style="width:90px; margin-right: 6px;" ng-model="u.lowDown"
                                           placeholder="请输入报警低值"/>
                                    <input type="text" ng-disabled="!u.chosed" style="width:90px; "
                                           ng-model="u.lowUp" placeholder="请输入报警高值"/>
                                </p>
                                <p>
                                    <span>红色警报参数：</span>
                                    <input type="text" ng-disabled="!u.chosed"
                                           style="width:90px; margin-right: 6px; " ng-model="u.highDown"
                                           placeholder="请输入报警低值"/>
                                    <input type="text" ng-disabled="!u.chosed" style="width:90px; "
                                           ng-model="u.highUp" placeholder="请输入报警高值"/></p>
                                </p>
                            </div>
                            <!--id=5（房间门状态）-->
                            <div class="R_blockStyle_Bool" ng-show="u.id==8"> </div>
                            <div style="clear: both"></div>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
        <div class="modal-footer">
            <button class="btn" data-dismiss="modal" aria-hidden="true">关 闭</button>
            <button class="btn btn-primary" ng-click="SaveAddUnitTypeInfo()">保 存
            </button>
        </div>
    </div>
    <!-- Modal---修改设备类型-->
    <div id="updateUnitType" class="modal hide fade" tabindex="-1" role="dialog"
         aria-labelledby="updateUnitTypeLable"
         aria-hidden="true">
        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
            <h4 id="updateUnitTypeLable">修改设备种类</h4>
        </div>
        <div class="modal-body">
            <div class="container" style="width:500px; height:450px; padding-bottom:20px">
                <div class="add_tj">
                    <div>
                        <div>
                            <p>
                                <span>请选择设备种类图：</span><input id="updateUnitTypeToUpload" name="file" type="file"/><br>
                                <i style="color: #959595;padding-left: 7px;">(* 推荐图片上传尺寸：28px * 25px，分辨率大小：96dpi)</i>
                            <div class="col-md-12">
                                <img id="updateUnitTypePhotoNew" src=""
                                     style="max-width:200px;max-height:200px;margin:0 auto;display:block;"/>
                            </div>
                            </p>
                            <p>
                                <span>设备种类：</span>
                                <input type="text" style="width: 120px" ng-model="currentDeviceTypeReq.name" id="up_UnitTypeName">
                                <i style="color: #959595;padding-left: 7px;">(*必填)</i>
                            </p>
                        </div>
                        <div>
                            <p><span>设备参数：</span><i style="color: #959595;padding-left: 7px;">(*至少选一项)</i></p>
                            <ul class="table-ul">
                                <li ng-repeat="inType in currentDeviceTypeReq.list">
                                    <div class="L_blockStyle">
                                        <!--<i><input type="checkbox" ng-bind="ins_unit.id"> -->
                                        <span ng-bind="inType.name"></span>
                                    </div>
                                    <div class="R_blockStyle" ng-show="inType.id!=8">
                                        <p>
                                            <span>标准参数：</span>
                                            <input type="text" style="width:90px;" ng-model="inType.standard"/>
                                        </p>
                                        <p>
                                            <span>黄色警报参数：</span>
                                            <input type="text" style="width:90px; margin-right: 6px;"
                                                   ng-model="inType.lowDown"/>
                                            <input type="text" style="width:90px; " ng-model="inType.lowUp"/>
                                        </p>
                                        <p><span>红色警报参数：</span>
                                            <input type="text" style="width:90px; margin-right: 6px; "
                                                   ng-model="inType.highDown"/>
                                            <input type="text" style="width:90px; " ng-model="inType.highUp"/></p>
                                        </p>

                                    </div>
                                    <div class="R_blockStyle_Bool" ng-show="inType.id==8"> </div>
                                    <div style="clear: both"></div>
                                </li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="modal-footer">
            <button class="btn" data-dismiss="modal" aria-hidden="true">关 闭</button>
            <button class="btn btn-primary" data-dismiss="modal" aria-hidden="true"
                    ng-click="SaveUpdateUnitTypeInfo()">保 存
            </button>
        </div>
    </div>
        <!-- Modal---删除设备类型-->
        <div id="deleteUnitType" class="modal hide fade" tabindex="-1" role="dialog"
             aria-labelledby="deleteUnitTypeLable"
             aria-hidden="true">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                <h4 id="deleteUnitTypeLable">删除设备种类</h4>
            </div>
            <div class="modal-body" style="min-height: 50px !important;">
                <div class="container" style="width:500px;">
                    <div class="add_tj">
                        <div style="font-size: 14px; text-align: center">
                            确认要删除该设备吗？
                        </div>
                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <button class="btn" data-dismiss="modal" aria-hidden="true">关 闭</button>
                <button class="btn btn-primary" data-dismiss="modal" aria-hidden="true"
                        ng-click="SavedeleteUnitTypeInfo()">保 存
                </button>
            </div>
        </div>

</div>